<template>
  <div>
      <table>
            <tr v-for='i in list' :key="i.id">
                <td >{{i.title}}</td>
                <td v-if='i.status ==2'>审核中</td>
                <td v-else-if='i.status ==3'>审核中</td>
                <td v-else-if='i.status ==1 && i.nexta==0'>审核失败，查看
                    <router-link :to="{name:'editTask',query:{'taskid':i.id,'id':i.workid}}">修改</router-link>
                    
                </td>
                <td v-else>待审核</td>
            </tr>
        </table>


  </div>
</template>

<script>
import axios from '../../http/axios'
export default {
    data(){
        return{
            list:[],
            userid:1
        }
    },
    methods: {
        getmytask(){
        
            axios('taskm','get',{"userid":this.userid}).then(res=>{
              
                this.list = res.list
            })
        }
    },
    mounted() {
        this.getmytask()
    },

}
</script>

<style>

</style>